package com.example.vo.process;
import com.example.pojo.Emp;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.FutureOrPresent;
import java.util.Date;

/**
 * 请假流程
 * @author wsl
 */
@ApiModel("请假申请模型类")
@Data
@Accessors(chain = true)
public class LeaveVo {

    @ApiModelProperty("申请人员")
    private String startUser;

    @ApiModelProperty("申请人员姓名")
    private String startUserName;

    @ApiModelProperty("请假类型名称")
    private String holidayTypeName;

    @ApiModelProperty("请假类型")
    private String holidayType;

    @ApiModelProperty("请假开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "Asia/Shanghai")
    private Date beginTime;

    @ApiModelProperty("请假结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "Asia/Shanghai")
    private Date endTime;

    @ApiModelProperty("请假天数")
    private Integer days;

    @ApiModelProperty("请假原因")
    private String cause;

    @ApiModelProperty("领导审批人员")
    private String leaderAssignee;

    @ApiModelProperty("人事审批人员")
    private String perAssignee;

    @ApiModelProperty("流程实例编号")
    private String processInstanceId;

    @ApiModelProperty("任务编号")
    private String taskId;

    @ApiModelProperty("任务名称")
    private String taskName;

    @ApiModelProperty("是否已结束")
    private Boolean end;

    @ApiModelProperty("当前流程节点")
    private String currentNode;

    @ApiModelProperty("审批结果")
    private Boolean approved;

    @ApiModelProperty("审批员工")
    private Emp assigneeEmp;

    @ApiModelProperty("申请时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date applicDate;
}
